import request from './request.js'

export function getRecordList(data) {
  return request({
    url: '/food/record/list',
    method: 'post',
	data: data
  })
}
 
export function record(data) {
  return request({
    url: '/food/record/insert',
    method: 'post',
	data: data
  })
}


export function recordWeight(data) {
  return request({
    url: '/weight/record',
    method: 'post',
	data: data
  })
}

export function recordWeightHistory() {
  return request({
    url: '/weight/list',
    method: 'get',
  })
}